
package com.example.testutil.util.file;

import java.util.List;

import com.google.gson.annotations.SerializedName;
/*
 * 里面的属性值要和json字串里面的键值一样.
 */
public class PersonInfo {
    List<String> phone;
    @SerializedName(value = "name" ,alternate = {"name_w","name_y"})
    String name;

    int age;
    
    Address address;
    
    boolean married;

    public List<String> getMphone() {
        return phone;
    }

    public void setMphone(List<String> mphone) {
        this.phone = mphone;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }


    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public boolean isMarried() {
        return married;
    }

    public void setMarried(boolean married) {
        this.married = married;
    }


    public static class Address {
        String country;

        String province;

        public String getCountry() {
            return country;
        }

        public void setCountry(String country) {
            this.country = country;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }
    }
}
